package com.vogue.supplymall.order.domain.model;

import javax.persistence.Entity;
import javax.persistence.Table;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单项目：记录订单的商品信息
 */
@Entity
@Table(name = "order_item_product")
public class OrderItemProduct extends TendBaseEntity implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = -8831541056831895821L;
	/**
     * 订单ID
     */
    private Long orderid;
    /**
     * 订单itemID
     */
    private Long orderitemid;
    /**
     * 商品id
     */
    private Long productid;
    /**
     * 商品名称
     */
    private String pname;
    /**
     * 商品价格
     */
    private BigDecimal price;
    /**
     * 商品数量
     */
    private Integer itemquantity;
    /**
     * 商品单位
     */
    private String punit;
    /**
     * imgurl
     */
    private String imgurl;
    /**
     * 商品计划id
     */
    private Long attrplanid;
    /**
     * 标准重量(单位：千克)
     */
    private BigDecimal weight;
    /**
     * 禁用标志
     */
    private Boolean disabledflag = false;
    /**
     * 商品对应的供应链系统中的品项id
     */
    private String pmatchid;
    /**
     * 商品单位对应的供应链系统中的品项单位id
     */
    private String umatchid;
    /**
     * 是否是主商品（0否 1是） 默认1
     */
    private Boolean mainproductflag = true;
    /**
     * 是否被评价 0-未被评价 1-已评价
     */
    private int commentstate = 0;

    public Long getOrderitemid() {
        return orderitemid;
    }

    public void setOrderitemid(Long orderitemid) {
        this.orderitemid = orderitemid;
    }

    public Long getProductid() {
        return productid;
    }

    public void setProductid(Long productid) {
        this.productid = productid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getPunit() {
        return punit;
    }

    public void setPunit(String punit) {
        this.punit = punit;
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    public Long getOrderid() {
        return orderid;
    }

    public void setOrderid(Long orderid) {
        this.orderid = orderid;
    }

    public Long getAttrplanid() {
        return attrplanid;
    }

    public void setAttrplanid(Long attrplanid) {
        this.attrplanid = attrplanid;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public Boolean getDisabledflag() {
        return disabledflag;
    }

    public void setDisabledflag(Boolean disabledflag) {
        this.disabledflag = disabledflag;
    }

	public String getPmatchid() {
		return pmatchid;
	}

	public void setPmatchid(String pmatchid) {
		this.pmatchid = pmatchid;
	}

	public String getUmatchid() {
		return umatchid;
	}

	public void setUmatchid(String umatchid) {
		this.umatchid = umatchid;
	}

    public Integer getItemquantity() {
        return itemquantity;
    }

    public void setItemquantity(Integer itemquantity) {
        this.itemquantity = itemquantity;
    }

    public Boolean getMainproductflag() {
        return mainproductflag;
    }

    public void setMainproductflag(Boolean mainproductflag) {
        this.mainproductflag = mainproductflag;
    }

    public int getCommentstate() {
        return commentstate;
    }

    public void setCommentstate(int commentstate) {
        this.commentstate = commentstate;
    }
}